<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<html>
<head>
	<base href="<%=basePath%>"/>
	<title>班级信息管理</title>
	<meta name="renderer" content="webkit">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
	<link rel="stylesheet" href="static/layuiadmin/layui/css/layui.css" media="all">
	<link rel="stylesheet" href="static/layuiadmin/style/admin.css" media="all">
<body>
<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-md12">
            <div class="layui-card">
                <div class="layui-form layui-card-header layuiadmin-card-header-auto" lay-filter="form-search">
                    <div class="layui-form-item">
                        <div class="layui-inline">
                            <label class="layui-form-label">关键字</label>
                            <div class="layui-input-inline">
                                <input type="text" id="filtername" name="filtername" placeholder="关键字" autocomplete="off" class="layui-input">
                            </div>
                        </div>

                        <div class="layui-inline">
                            <button class="layui-btn layuiadmin-btn-list" id="LAY-reload-search-id" lay-submit lay-filter="LAY-reload-search">
                                <i class="layui-icon layui-icon-search layuiadmin-button-btn">查询</i>
                            </button>
                            <button class="layui-btn layuiadmin-btn-list" id="LAY-reset-search" lay-filter="LAY-reset-search">重置</button>
                        </div>
                    </div>
                </div>

                <div class="layui-col-md12">
                    <div class="layui-card">
                        <div class="layui-card-body" style="padding: 0;">
                            <table class="layui-hide" id="group-entity-table-info" lay-filter="group-entity-table-info"></table>
                            <!--表格头部按钮模块-->
                            <script type="text/html" id="entity-table-totalRow-toolbar">
                                <div class="layui-inline">
                                    <div class="layui-btn-container">
                                        <div class="layui-btn-group layui-btn-radius " style="margin-bottom: 0px;">
                                            <button class="layui-btn layui-btn-radius" lay-event="add"><i class="layui-icon">&#xe608;</i>新增 </button>
                                            <button class="layui-btn layui-btn-radius layui-btn-danger" lay-event="batchDelete"><i class="layui-icon">&#xe640;</i>批量删除</button>
                                        </div>
                                    </div>
                                </div>
                            </script>

                            <!--表格列表数据-->
							<table class="layui-hide" id="entity-table-info" lay-filter="entity-table-info"></table>

                            <!--表格行内操作按钮模块-->
                            <script type="text/html" id="entity-table-detail-ID">
                                <a class="layui-btn layui-btn-xs" lay-event="edit"><i class="layui-icon">&#xe642;</i></a>
                                <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="delete"><i class="layui-icon">&#xe640;</i></a>
                                <a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="detail"><i class="layui-icon">&#xe602;</i></a>
                            </script>

                            <!--班级状态模板-->
                            <script type="text/html" id="entity-table-status-ID">
                                <input type="checkbox" disabled="" name="status" lay-skin="switch" lay-text="正常上课|停止招生" lay-filter="entity-table-status"
                                       value="{{ d.classStatus }}" data-json="{{ encodeURIComponent(JSON.stringify(d)) }}" {{ d.classStatus == 1 ? 'checked' : '' }}>
                            </script>
							<%--年级组显示模板--%>
							<script type="text/html" id="entity-table-classGroup">
									{{#    if(d.classGroup==1){           }}
										<lable class="layui-btn layui-btn-normal">高中教学部</lable>
									{{#     }else if(d.classGroup==2){	  }}
									    <lable class="layui-btn layui-btn-warm">初中教学部</lable>
									{{#     }                		      }}
							</script>
							<%--班级类型classType显示模板--%>
							<script type="text/html" id="entity-table-classType">
									{{#		if(d.classType==1){				}}
									<lable class="layui-btn layui-btn-radius layui-btn-normal">大班 普通教学班（30-40人）</lable>
									{{#		}else if(d.classType==2){		}}
									<lable class="layui-btn layui-btn-radius layui-btn-warm">中班 提高教学班（20-30人）</lable>
									{{#		}else if(d.classType==3){		}}
									<lable class="layui-btn layui-btn-radius layui-btn-danger">小班 精致教学班（10-20人）</lable>
									{{#		}		}}
							</script>

                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>


<style>
    .layui-form-item .layui-input-inline{
        float: contour;
        width: 250px;
        margin-right: 10px
    }
    .layui-form-select{
        width: 250px;
    }
</style>

<!--新增修改窗口-->
<div id="entity-mode" class="layui-fluid" style="display:none">
    <div class="layui-card">
        <div class="layui-card-body" style="padding: 15px;">
          
               <form id="entity-Info" class="layui-form" lay-filter="entity-Info">               
                                    
	                   <div class="layui-form-item">
	                       <div class="layui-inline" style="display: none">
	                           <label class="layui-form-label">班级ID</label>
	                           <div class="layui-input-inline">
	                               <input type="tel" name="clsID" disabled="disabled"  class="layui-input">
	                           </div>
	                       </div>
	                   </div>
	                  <div class="layui-form-item">
	                    <div class="layui-inline">
	                        <label class="layui-form-label">所属分校ID</label>
	                        <div class="layui-input-inline">
	                            <input type="tel" name="classSchoolId" lay-verify="required" autocomplete="off" class="layui-input">
	                        </div>
	                    </div>
	                  </div>
	                  <div class="layui-form-item">
	                    <div class="layui-inline">
	                        <label class="layui-form-label">班级号</label>
	                        <div class="layui-input-inline">
	                            <input type="tel" name="classId" placeholder="由系统自动生成" disabled="disabled"  lay-verify="required" autocomplete="off" class="layui-input">
	                        </div>
	                    </div>
	                  </div>
	                  <div class="layui-form-item">
	                    <div class="layui-inline">
	                        <label class="layui-form-label">年级组（高中，初中）</label>
	                        <div class="layui-input-inline">
								<select id="classGroup" name="classGroup">
									<%--<option value="1">高中教学部</option>
									<option value="2">初中教学部</option>--%>
								</select>
	                            <%--<input type="tel" name="classGroup" lay-verify="required" autocomplete="off" class="layui-input">--%>
	                        </div>
	                    </div>
	                  </div>
	                  <div class="layui-form-item">
	                    <div class="layui-inline">
	                        <label class="layui-form-label">辅导班级类型（大中小）</label>
	                        <div class="layui-input-inline">
								<select id="classType" name="classType">
									<%--<option value="1">大班 普通教学班（30-40人）</option>
									<option value="2">中班 提高教学班（20-30人）</option>
									<option value="3">小班 精致教学班（10-20人）</option>--%>
								</select>
	                            <%--<input type="tel" name="classType" lay-verify="required" autocomplete="off" class="layui-input">--%>
	                        </div>
	                    </div>
	                  </div>
	                  <div class="layui-form-item">
	                    <div class="layui-inline">
	                        <label class="layui-form-label">所属年级</label>
	                        <div class="layui-input-inline">
	                            <%--<input type="tel" name="classYear" lay-verify="required" autocomplete="off" class="layui-input">--%>
								<select id="classYear" name="classYear">
									<option value="2019">2019级</option>
									<option value="2020">2020级</option>
									<option value="2021">2021级</option>
								</select>
	                        </div>
	                    </div>
	                  </div>
	                  <div class="layui-form-item">
	                    <div class="layui-inline">
	                        <label class="layui-form-label">所属教研组（数学，语文，英语，全日制，等等）</label>
	                        <div class="layui-input-inline">
								<select id="classGrade" name="classGrade">
									<option value="1">全日制全科辅导</option>
									<option value="2">单科数学教学班</option>
									<option value="3">单科语文教学班</option>
									<option value="4">单科英语教学班</option>
									<option value="5">单科物理教学班</option>
									<option value="6">单科化学教学班</option>
								</select>
	                            <%--<input type="tel" name="classGrade" lay-verify="required" autocomplete="off" class="layui-input">--%>
	                        </div>
	                    </div>
	                  </div>
	                  <div class="layui-form-item">
	                    <div class="layui-inline">
	                        <label class="layui-form-label">辅导员/对应工号</label>
	                        <div class="layui-input-inline">
	                            <input type="tel" name="classMaster" lay-verify="required" autocomplete="off" class="layui-input">
	                        </div>
	                    </div>
	                  </div>
	                  <div class="layui-form-item">
	                    <div class="layui-inline">
	                        <label class="layui-form-label">班级创建时间</label>
	                        <div class="layui-input-inline">
	                            <input type="text" name="classCreateDt" id="add-classCreateDt-ID" lay-verify="required|datetime" placeholder="yyyy-MM-dd HH:MM:ss" autocomplete="off" class="layui-input">
	                        </div>
	                    </div>
	                  </div>
	                  <div class="layui-form-item">
	                    <div class="layui-inline">
	                        <label class="layui-form-label">班级状态</label>
	                        <div class="layui-input-inline">
	                           <%-- <input type="tel" name="classStatus" lay-verify="required" autocomplete="off" class="layui-input">--%>
								<select id="classStatus" name="classStatus">
									<option value="1">正常上课</option>
									<option value="0">停止招生</option>
								</select>
	                        </div>
	                    </div>
	                  </div>
                           
                
               <div class="layui-input-block">
                   <div class="layui-footer" style="left: 0;">
                       <div class="layui-input-inline">
                           <button id="add-entity-info-btn" class="layui-btn" lay-submit="" lay-filter="add-entity-info-btn">立即提交</button>
                       </div>
                       <div class="layui-input-inline">
                           <button id="add-entity-info-btn-reset"  type="reset" class="layui-btn layui-btn-primary">重置</button>
                       </div>
                   </div>
               </div>

               </form>
        </div>
    </div>
</div>

<!--详情窗口-->
<div id="entity-mode-detail" class="layui-fluid" style="display:none">
    <div class="layui-card">
        <div class="layui-card-body" style="padding: 15px;">
          
            <form id="show-entity-Info" class="layui-form" lay-filter="show-entity-Info">
	                   <div class="layui-form-item">
	                       <div class="layui-inline" style="display: none">
	                           <label class="layui-form-label">班级ID</label>
	                           <div class="layui-input-inline">
	                               <input type="tel" disabled="disabled" name="clsID"  class="layui-input">
	                           </div>
	                       </div>
	                   </div>
	                  <div class="layui-form-item">
	                    <div class="layui-inline">
	                        <label class="layui-form-label">所属分校ID</label>
	                        <div class="layui-input-inline">
	                            <input type="tel" disabled="disabled" name="classSchoolId" lay-verify="required" autocomplete="off" class="layui-input">
	                        </div>
	                    </div>
	                  </div>
	                  <div class="layui-form-item">
	                    <div class="layui-inline">
	                        <label class="layui-form-label">班级号</label>
	                        <div class="layui-input-inline">
	                            <input type="tel" disabled="disabled" name="classId" lay-verify="required" autocomplete="off" class="layui-input">
	                        </div>
	                    </div>
	                  </div>
	                  <div class="layui-form-item">
	                    <div class="layui-inline">
	                        <label class="layui-form-label">年级组（高中，初中）</label>
	                        <div class="layui-input-inline">
	                            <input type="tel" disabled="disabled" name="classGroup" lay-verify="required" autocomplete="off" class="layui-input">
	                        </div>
	                    </div>
	                  </div>
	                  <div class="layui-form-item">
	                    <div class="layui-inline">
	                        <label class="layui-form-label">辅导班级类型（大中小）</label>
	                        <div class="layui-input-inline">
	                            <input type="tel" disabled="disabled" name="classType" lay-verify="required" autocomplete="off" class="layui-input">
	                        </div>
	                    </div>
	                  </div>
	                  <div class="layui-form-item">
	                    <div class="layui-inline">
	                        <label class="layui-form-label">所属年级</label>
	                        <div class="layui-input-inline">
	                            <input type="tel" disabled="disabled" name="classYear" lay-verify="required" autocomplete="off" class="layui-input">
	                        </div>
	                    </div>
	                  </div>
	                  <div class="layui-form-item">
	                    <div class="layui-inline">
	                        <label class="layui-form-label">所属教研组（数学，语文，英语，全日制，等等）</label>
	                        <div class="layui-input-inline">
	                            <input type="tel" disabled="disabled" name="classGrade" lay-verify="required" autocomplete="off" class="layui-input">
	                        </div>
	                    </div>
	                  </div>
	                  <div class="layui-form-item">
	                    <div class="layui-inline">
	                        <label class="layui-form-label">辅导员/对应工号</label>
	                        <div class="layui-input-inline">
	                            <input type="tel" disabled="disabled" name="classMaster" lay-verify="required" autocomplete="off" class="layui-input">
	                        </div>
	                    </div>
	                  </div>
	                  <div class="layui-form-item">
	                    <div class="layui-inline">
	                        <label class="layui-form-label">班级创建时间</label>
	                        <div class="layui-input-inline">
	                            <input type="text" disabled="disabled" name="classCreateDt" id="show-classCreateDt-ID" lay-verify="required|datetime" placeholder="yyyy-MM-dd HH:MM:ss" autocomplete="off" class="layui-input">
	                        </div>
	                    </div>
	                  </div>
	                  <div class="layui-form-item">
	                    <div class="layui-inline">
	                        <label class="layui-form-label">班级状态</label>
	                        <div class="layui-input-inline">
	                            <input type="tel" disabled="disabled" name="classStatus" lay-verify="required" autocomplete="off" class="layui-input">
	                        </div>
	                    </div>
	                  </div>
            </form>
        </div>
    </div>
</div>

<script src="static/user/js/jquery.min.js"></script>
<script src="static/layuiadmin/layui/layui.js"></script>
<script src="static/user/common.js"></script>
<script src="static/user/class-list.js?v=342532"></script>
</body>
</html>
